<%@ include file="/platform/common/head.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html style="height: 36px;">
<head>
    <title>在线文档</title>
    <meta charset="UTF-8">
    <%--<meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">--%>
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <style>
        #pageoffice-download-link {
            text-align: center;
            font-size: 14px;
            line-height: 30px;
            display: inline-block;
        }

    </style>
</head>
<body ng-init="YWID='${param.businessId}';LXDM='${param.lxdm}';ZLXDM='${param.zlxdm}';DOMID='${param.domId}';readOnly='${param.readOnly}'"
      style="height: 47px;margin-top: 5px;">
<div ng-app="myApp" ng-init="checkPageOfficeInsert()" ng-controller="openOfficeController">
    <div style="width: 100%">
        <div id="uploadFrame" style="display: inline-block;max-width: 100%; width:85%; height: 47px;">
            <iframe id="file-load-zone" style="border: none;width: 100%;height: 100%;">

            </iframe>
            <%--<div upload-file-simplify ng-config="uploadConfig"
                 ng-uploader="uploader" select-tip="请选择文件"></div>--%>
        </div>
        <div ng-show="readOnly != 'true'"
             style="display: inline-block;width: 100px;vertical-align: top;margin-top: 5px;">
            <div style="display: inline-block;">
                <button type="button" id="btn_upload_upload"
                        class="btn btn-default import btn-sm" ng-click="openOnLineEditPage()">
                    在线拟稿
                </button>
            </div>
            <div id="pageoffice-download-link">
                <a target="_blank"
                   href="<common:webRoot/>/resources/help/posetup.exe">下载PageOffice插件</a>
            </div>
        </div>
    </div>

</div>
</body>
<script type="text/javascript"
        src="<common:webRoot/>/resources/platform/maintain/demo/pageoffice.js?v=${sysversion}"></script>
<script type="text/javascript" src="<common:webRoot />/resources/component/layer/layerTool.js?v=${sysversion}"></script>
<script type="text/javascript"
        src="<common:webRoot/>/resources/platform/js/onlinedocumentedit.js?v=${sysversion}"></script>
<script>
    $(function () {
        let frame = $('#uploadFrame');
        let parentWidth = frame.parent().innerWidth() * 1;
        let nextWidth = frame.next().outerWidth() * 1;
        console.log((parentWidth - nextWidth - 10) + 'px');
        frame.css('width', (parentWidth - nextWidth - 10) + 'px');
    });
</script>
</html>
